org.eclipse.vtp.framework.engine
Class IdentifierDescriptor

java.lang.Object
  extended by org.eclipse.vtp.framework.engine.IdentifierDescriptor

public final class IdentifierDescriptor
extends java.lang.Object

An object that describes an identifier of a service.

Author:
Lonnie Pryor

Constructor Summary
IdentifierDescriptor(java.lang.String name, java.lang.String[] qualifiers)
          Creates a new FieldDescriptor.
 
Method Summary
 java.lang.String getName()
          Returns the name of this identifier.
 java.lang.String getQualifier(int index)
          Returns the qualifier at the specified index.
 int getQualifierCount()
          Returns the number of qualifiers declared on this identifier.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentifierDescriptor

public IdentifierDescriptor(java.lang.String name,
                            java.lang.String[] qualifiers)
                     throws java.lang.IllegalArgumentException,
                            java.lang.NullPointerException
Creates a new FieldDescriptor.

Parameters:
name - The name of this identifier.
qualifiers - The type of this identifier.
initialValue - The initial value of this field when an object is created.
Throws:
java.lang.IllegalArgumentException - If the supplied name is empty.
java.lang.IllegalArgumentException - If the same qualifier is listed more than once in the supplied qualifier array.
java.lang.NullPointerException - If the supplied name is null.
java.lang.NullPointerException - If the supplied qualifier array or any of its elements are null.
Method Detail

getName

public java.lang.String getName()
Returns the name of this identifier.

Returns:
The name of this identifier.

getQualifierCount

public int getQualifierCount()
Returns the number of qualifiers declared on this identifier.

Returns:
The number of qualifiers declared on this identifier.

getQualifier

public java.lang.String getQualifier(int index)
                              throws java.lang.IndexOutOfBoundsException
Returns the qualifier at the specified index.

Returns:
The qualifier at the specified index.
Throws:
java.lang.IndexOutOfBoundsException - If the supplied index is less than zero or greater than or equal to this identifier's qualifier count.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object